<template>
  <div>
   
      <SongAudioVue/>
      <router-view v-if="isRouterAlive"></router-view>

  </div>
</template>

<script>
import SongAudioVue from './components/SongAudio.vue'
export default {
  name: 'App',
  components:{
    SongAudioVue
  },
  provide(){
    return{
      reload : this.reload
    }
  },
  data(){
    return{
      isRouterAlive : true
    }
  },
  methods:{
    reload(){
      this.isRouterAlive = false
      this.$nextTick(function(){
        this.isRouterAlive = true
      })
    }
  }
}
</script>

<style>

.fade-right-enter-to,
.fade-right-leave-from{
  opacity: 1;
  transform: none;
}
 

.fade-right-enter-active,
.fade-right-leave-active
{
  transition: all 0.5s;
}
 

.fade-right-enter-from,
.fade-right-leave-to{
  opacity: 0;
  transform: translateX(20px);
}
</style>
